package com.zy.stock.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.zy.stock.domain.Stock;
import com.zy.stock.domain.UserStockRl;
import com.zy.stock.dto.UserStockRlDto;
import com.zy.stock.dto.UserStockRlProfitDto;

public interface UserStockRlMapper {
	
	public Integer getCount(UserStockRlDto obj);

	public List<UserStockRl> findByCase(UserStockRlDto obj);
	
	public Integer save(UserStockRl stock);
	
	public UserStockRl findById(Integer id);
	
	public Integer update(UserStockRl stock);
	
	public void deleteById(Integer id);
	
	public List<UserStockRl> findAll();
	
	public List<UserStockRl> findLastUserStockRl(@Param("userId")Integer userId,@Param("stockId")Integer stockId,@Param("years")String years);
	
	public List<UserStockRl> findByCode(@Param("code")String code);
	
	public List<UserStockRl> findShare(@Param("stockId")Integer stockId);
	
	public UserStockRl findByStoreNum(@Param("storeNum")String storeNum);
	
	public List<UserStockRlProfitDto> findRlProfit(UserStockRlDto dto);
}	
